import pyperclip


def get_file_str(path):
    file_in = open(path, encoding='utf-8')
    return file_in.read()


def out_file(out_str, file_type='txt', name_path='out.'):
    file_path = name_path + file_type
    file_out = open(file_path, mode='w', encoding='utf-8')
    file_out.write(out_str)


def test_replace(out=None):
    for one in lis:
        li = one.split(',')
        one_str = in_str_1.replace('{0}', li[0]).replace('{1}', li[1])
        out += one_str
    return out


in_str_1 = get_file_str('input0.txt')
in_str_col = get_file_str('input_col.txt')
lis = in_str_col.split('\n')

out = ''

j = {
    slug
}

out_file(out)
pyperclip.copy(out)

print("执行成功。")
